﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.Web;
using DevExpress.Web.ASPxClasses;


public partial class UserControl_ReportViewerControl : System.Web.UI.UserControl
{
    public ReportViewer ReportViewer { get { return ReportViewer1; } }
    public string ReportName
    {
        get { return ReportViewer1.ReportName; }
        set { ReportViewer1.ReportName = value; }
    }
    public XtraReport Report
    {
        get { return ReportViewer1.Report; }
        set { ReportViewer1.Report = value; }
    }
    public bool ReportToolbarsAutoWidth
    {
        get { return ReportToolbar1.Width == Unit.Percentage(100) ; }
        set { ReportToolbar1.Width =  (value ? Unit.Percentage(100) : Unit.Empty); }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        DataBind();
    }
}